package com.credithc.signature.facade.ro;

import com.credithc.signature.facade.constant.Constant;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 描述：签章Rest请求<br/>
 * 作者：sunyang
 * 创建：2019/5/30 16:31
 * 版本：v1.0.0<br/>
 */
@Data
public class RestSignatureReq {

    /**
     * 版本号：留待多版本控制
     */
    public static final int VERSION = 1;

    @NotBlank(message = "channelNo" + Constant.ALARM_NULL)
    private String channelNo;

    @NotBlank(message = "templateNo" + Constant.ALARM_NULL)
    private String templateNo;

    @NotNull(message = "needSign" + Constant.ALARM_NULL)
    private Boolean needSign;

    @NotBlank(message = "callBackUrl" + Constant.ALARM_NULL)
    private String callBackUrl;

    @NotNull(message = "requestData" + Constant.ALARM_NULL)
    private RequestData requestData;

    private String signatureSN;

    private Integer vip;
}
